package com.ys.service.sys;

import org.springframework.ui.Model;

import com.ys.vo.R;

import lombok.AllArgsConstructor;
import lombok.Data;

public interface SysButtonService {

	R addSysButton(Long sysMenuId, String name, String event, String nameShiroAuth);

	R deleteTrue(Long id);
	
	String toAddSysButton(Model model, Long sysMenuId);
	@Data
	@AllArgsConstructor
	public static class ToAddSysButtonDto {
		private Long sysMenuId; // 菜单ID
		private String sysMenuName; // 菜单名称
	}

	R editSysButton(Long id, String name, String event, String nameShiroAuth);
	
	String toEditSysButton(Model model, Long id);
	@Data
	@AllArgsConstructor
	public static class ToEditSysButtonDto {
		private Long id; // 按钮ID
		private String name; // 按钮名称
		private String event; // 按钮事件名
		private String nameShiroAuth; // 授权编码
	}

}